class Father:
    def __init__(self,name):
        self.name = name
    def move(self):
        print(f"我是父亲，我的名字是{self.name},我想出去玩")

class Son(Father):
    def move(self):
        print(f"我是儿子，我的名字是{self.name},我爱学习")

a = Son("小孩")
a.move()

b = Father("大人")
b.move()